"""dqms URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from dqms.controllers import userController,projectController,bugController,caseController
from dqms import settings
from django.conf.urls.static import static
urlpatterns = [
    path('loginPage/', userController.loginPage),
    path('login/', userController.login),
    path('registerPage/', userController.registerPage),
    path('register/', userController.register),
    path('projectCases/', userController.projectCases),
    path('projectManagePage/', projectController.projectManagePage),
    path('changeProjectInfo/',projectController.changeProjectInfo),
    path('allocateProjectToWorkers/',projectController.allocateProjectToWorkers),
    path('doAllocateProject/',projectController.doAllocateProject),
    path('addCaseToProjectPage/',projectController.addCaseToProjectPage),
    path('addProject/',projectController.addProject),
    path('addBugStylePage/',bugController.addBugStylePage),
    path('main/',projectController.main),
    path('menu/',projectController.menu),
    path('workerManagePage/',userController.workerManagePage),
    path('workerManage/',userController.workerManage),
    path('addCaseTitlePage/',caseController.addCaseTitlePage),
    path('addCaseTitle/',caseController.addCaseTitle),
    path('modifyCaseTitle/',caseController.modifyCaseTitle),
    path('addCaseDetailPage/',caseController.addCaseDetailPage),
    path('addCaseDetail/',caseController.addCaseDetail),
    path('checkCaseDetail/',caseController.checkCaseDetail),
    path('checkCaseDetailName/',caseController.checkCaseDetailName),
    path('modifyCaseAndCaseDetailBind/',caseController.modifyCaseAndCaseDetailBind),
    path('modifyCaseDetailPage/',caseController.modifyCaseDetailPage),
    path('modifyCaseDetail/',caseController.modifyCaseDetail),
    path('deleteProject/',projectController.deleteProject),
    path('gotoCaseListPage/',userController.gotoCaseListPage),
    path('todoCaseAndProjectRelations/',projectController.todoCaseAndProjectRelations),
    path('gotoCaseDetailContentPage/',userController.gotoCaseDetailContentPage),
    path('logout/',userController.logout),
    path('changePosition/',caseController.changePosition),
    path('changeCaseDetailPosition/',caseController.changeCaseDetailPosition),
    path('notebookAndCellPhoneAndPadInfos/',projectController.notebookAndCellPhoneAndPadInfosPage),
    path('addMachineInfo/',projectController.addMachineInfo),
    path('delMachineInfo/',projectController.delMachineInfo),
    path('projectAndMachinesRelationsPage/',projectController.projectAndMachinesRelationsPage),
    path('getMachineToTestAndPn/',projectController.getMachineToTestAndPn),
    path('uploadFile/',projectController.uploadFile),
    path('showImage/',projectController.showImage),
    path('deleteImg/',projectController.deleteImg),
    path('submitFailReason/',projectController.submitFailReason),
    path('bugCheck/',bugController.bugCheck),
    path('getMachineToTest/',projectController.getMachineToTest),
]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
